<?php
namespace TestAdmin\Controller;
use Think\Controller;

use Common\Controller\CommonActions\OrgnizerActionController as OrgC;
class IndexController extends BaseController {

    public function index(){
        $this->display();
    }

    public function AllOrg_content()
    {
        $this->assign('rs', OrgC::showOrgnizersInfo());
        $this->display();
    }

    public function getAdminInfo()
    {

        if (session("adminoid")){
            $rs['oid'] = session("adminoid");

            $org_name =  M("orgnizers")->where(['oid'=>$rs['oid']])->find();
            $org_name = $org_name['orgnizer_name'];

            $rs['org_name'] =$org_name;
            $rs['org_selected'] = 1;

        }
        else{
            $rs['org_selected'] = 0;

        }

        $rs['time'] = convertUnixTime(time());

        $this->ajaxReturn($rs);
       // var_dump($rs);

    }




}